const mongoose = require("mongoose")
const {model, Schema} = mongoose
const schema = new Schema({
    Sno: {
        type: String,
        index: true,
        unique: true
    },
    sex: {
        type: String,
    },
    pwd: {
        type: String
    },
    name: {
        type: String,
        default: ''
    },
    tel: {
        type: String,
        default: ''
    },
    status: {
        type: Number,
        default: 0
    },
    IDCard: {
        type: String,
        default: ''
    },
    schoolName: {
        type: String,
        default: ''
    },
    collegeName: {
        type: String,
        default: ''
    },
    majorName: {
        type: String,
        default: ''
    },
    applyID: {
        type: Array
    },
    createTime: {
        type: Date,
        default: new Date()
    },
    updateTime: {
        type: Date,
        default: new Date()
    }
})
const User = model("User", schema)
module.exports = User

